package com.huike.clues.mapper;


import com.huike.clues.domain.TbClueTrackRecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 线索跟进记录Mapper接口
 * @date 2021-04-19
 */
public interface TbClueTrackRecordMapper {

    /**
     * 添加线索跟进记录
     * @param tbClueTrackRecord1
     */
    void add(TbClueTrackRecord tbClueTrackRecord1);

    /**
     * 查询线索跟进列表
     * @param clueId
     * @return
     */
    @Select("select * from tb_clue_track_record where clue_id = #{clueId}")
    List<TbClueTrackRecord> list(Long clueId);

    @Delete("delete from tb_clue_track_record where clue_id = #{id}")
    void deleteTbClueRecord(Long id);
}
